﻿// Copyright (c) MudBlazor 2021
// MudBlazor licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.

using MXERP.Infrastructure.Constants;

namespace MXERP.Client.Services;

public class UserPreference
{
    /// <summary>
    ///     Set the direction layout of the docs to RTL or LTR. If true RTL is used
    /// </summary>
    public bool RightToLeft { get; set; }

    /// <summary>
    /// The current dark light mode that is used
    /// </summary>
    public DarkLightModeEnum DarkLightTheme { get; set; }

    public string LanguageCode { get; set; } = LocalizationConstant.SupportedLanguages.FirstOrDefault()?.Code ?? "en-US";
}